package com.joysuch.wwyt.mh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joysuch.wwyt.mh.entity.MhMajorHazardPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zqw
 * @since 2022-05-17
 */
public interface MhMajorHazardPlanMapper extends BaseMapper<MhMajorHazardPlan> {

    int countByPlanNameAndId(@Param("planName") String planName,@Param("id") Long id, @Param("orgCode")String orgCode,@Param("tenentId") Long tenentId);

    Page<MhMajorHazardPlan> selectByPage(@Param("page") Page<MhMajorHazardPlan> page, @Param("checkUserIds") List<Long> checkUserIds, @Param("authDepartIds") List<Long> authDepartIds, @Param("cycleType") Integer cycleType, @Param("planName") String planName, @Param("orgCode") String orgCode, @Param("tenentId") Long tenentId, @Param("majorHazardId") Long majorHazardId);

    List<MhMajorHazardPlan> findByPlanIds (@Param("planIds") List<Long> planIds);
}
